package com.siblings.loan.http

import com.siblings.http.callback.StringCallback
import org.json.JSONObject

/**
 * Siblings
 * @Author wwdeng
 * @CreateTime: 2024/7/4 17:35
 * @Annotation：
 */
interface IHttpLoader {

    /**
     * POST方式请求
     *
     * @param url
     * @param params
     * @param callback
     */
    fun postSibAction(url: String, params: JSONObject, callback: IHttpCallback)

    /**
     * 添加埋点
     */
    fun addSibEventAction(eventName: String, remark: String)

    /**
     * POST方式请求 (文件上传)
     *
     * @param url
     * @param file
     * @param callback
     */
    fun uploadSibFileAction(httpUrl: String, filePath: String, callback: StringCallback)
}